package com.hyh.spring.service;

import com.hyh.spring.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @BelongsPackage: com.hyh.spring.service
 * @ClassName AccountService
 * @Author: hyhWTX
 * @CreateTime: 2023-06-05  17:38
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {
    @PostMapping(value = "/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}